STEP 12: Next let's have the user input an amount of hours that we want to jump forward in the future.

  • Go to and drag in Ask for Integer. Change the variable guess to add_time.
  • Change the text inside .ask() to "Enter a number of hours to add to the current time:".
  • Click on LOGIC. Go to and drag in Variable Display .
  • Change the display variable to add_time. Position the display at (-145, 80).

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)